package com.shengsiyuan.decorator;

/**
 * Created by deng_wb on 2019/8/11
 */
public class Client {
    public static void main(String[] args) {
        //Component component = new ConcreteDecorator2(new ConcreteDecorator1(new ConcreteComponent()));
        Component component = new ConcreteDecorator2(new ConcreteComponent());

        component.doSomething();
    }
}
